package com.park.service.impl;

import com.park.bean.TicketsType;
import com.park.dao.ITicketsDao;
import com.park.dao.ITicketsTypeDao;
import com.park.service.ITicketsTypeService;
import com.park.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketsTypeServiceImpl implements ITicketsTypeService {
    @Autowired
    ITicketsTypeDao dao;
    @Override
    public List<TicketsType> getTicketsType(TicketsType ticketsType, Page page) {
        return dao.getTicketsType(ticketsType,page);
    }

    @Override
    public int getCount(TicketsType ticketsType) {
        return dao.getCount(ticketsType);
    }

    @Override
    public int delTicketsType(int id) {
        return dao.delTicketsType(id);
    }

    @Override
    public int postTicketsType(TicketsType ticketsType) {
        return dao.postTicketsType(ticketsType);
    }

    @Override
    public int editTicketsType(TicketsType ticketsType) {
        return dao.editTicketsType(ticketsType);
    }
}
